<?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:96:"/Applications/mampstack/apache2/htdocs/cps/public/../application/admin/view/courses/colists.html";i:1508134572;s:91:"/Applications/mampstack/apache2/htdocs/cps/public/../application/admin/view/public/css.html";i:1507703937;s:91:"/Applications/mampstack/apache2/htdocs/cps/public/../application/admin/view/public/top.html";i:1506681856;s:92:"/Applications/mampstack/apache2/htdocs/cps/public/../application/admin/view/public/menu.html";i:1508125184;s:92:"/Applications/mampstack/apache2/htdocs/cps/public/../application/admin/view/public/foot.html";i:1505294022;s:90:"/Applications/mampstack/apache2/htdocs/cps/public/../application/admin/view/public/js.html";i:1506681752;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <!-- Title and other stuffs -->
    <title>单条内容管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="">
    <!-- Stylesheets -->
<link href="/static/admin/style/bootstrap.css" rel="stylesheet">
<!-- Font awesome icon -->
<link rel="stylesheet" href="/static/admin/style/font-awesome.css">
<!-- jQuery UI -->
<link rel="stylesheet" href="/static/admin/style/jquery-ui.css">
<!-- Calendar -->
<link rel="stylesheet" href="/static/admin/style/fullcalendar.css">
<!-- prettyPhoto -->
<link rel="stylesheet" href="/static/admin/style/prettyPhoto.css">
<!-- Star rating -->
<link rel="stylesheet" href="/static/admin/style/rateit.css">
<!-- Date picker -->
<link rel="stylesheet" href="/static/admin/style/bootstrap-datetimepicker.min.css">
<!-- CLEditor -->
<link rel="stylesheet" href="/static/admin/style/jquery.cleditor.css">
<!-- Bootstrap toggle -->
<link rel="stylesheet" href="/static/admin/style/bootstrap-switch.css">
<!-- Main stylesheet -->
<link href="/static/admin/style/style.css" rel="stylesheet">
<!-- Widgets stylesheet -->
<link href="/static/admin/style/widgets.css" rel="stylesheet">

<!-- HTML5 Support for IE -->
<!--[if lt IE 9]>
<script src="/static/admin/js/html5shim.js"></script>
<![endif]-->
<style>
    .muen_open{
        background-color: #ebebeb;
        /*background-color: #0993d3;
        background: -webkit-gradient(linear, left top, left bottom, from(#1aaef3), to(#0993d3));
        background: -webkit-linear-gradient(top, #1aaef3, #0993d3);
        background: -moz-linear-gradient(top, #1aaef3, #0993d3);
        background: -ms-linear-gradient(top, #1aaef3, #0993d3);
        background: -o-linear-gradient(top, #1aaef3, #0993d3);
        background: linear-gradient(top, #1aaef3, #0993d3);*/
        box-shadow: none;
        color: #fff;
        font-weight: bold;
    }
    .sidebar{
        margin-top: 0px;
    }
    .content{
        margin-top: 10px;;
    }
    header{
        margin-bottom: -10px;;
    }
    .required{
        color: #e25856;
        margin-left: 4px;
    }
</style>
    <style>
        tr img{ max-width: 100px; max-height: 100px;}
    </style>
</head>

<body>

<div class="navbar navbar-fixed-top bs-docs-nav" role="banner">

    <div class="conjtainer">
        <!-- Menu button for smallar screens -->
        <div class="navbar-header">
            <button class="navbar-toggle btn-navbar" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
                <span>菜单</span>
            </button>
            <!-- Site name for smallar screens -->
            <a href="/" class="navbar-brand hidden-lg">首页</a>
        </div>

        <!-- Navigation starts -->
        <nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">

            <ul class="nav navbar-nav">

                <!-- Sync to server link -->
                <li class="dropdown dropdown-big">
                    <a href="javascript:;" onclick="window.location.reload();" class="dropdown-toggle"><span class="label label-danger"><i class="icon-refresh"></i></span> 刷新页面</a>
                </li>

            </ul>

            <!-- Links -->
            <ul class="nav navbar-nav pull-right">
                <li class="dropdown pull-right">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <i class="icon-user"></i> <?php echo \think\Session::get('user_name'); ?> <b class="caret"></b>
                    </a>

                    <!-- Dropdown menu -->
                    <ul class="dropdown-menu">
                        <li><a href="/admin/index/uppwd"><i class="icon-user"></i> 修改密码</a></li>
                        <li><a href="/admin/login/loginout"><i class="icon-off"></i> 退出</a></li>
                    </ul>
                </li>

            </ul>
        </nav>

    </div>
</div>

<!-- Main content starts -->

<div class="content">

    <!-- 左侧菜单 -->
    <div class="sidebar">
    <div class="sidebar-dropdown"><a href="#">导航</a></div>

    <!--- Sidebar navigation -->
    <ul id="nav">
        <!-- Main menu with font awesome icon -->
        <!--<li>
            <a href="/"
                <if condition="$controller_name eq 'Index'">
                    class="open"
                </if>
            ><i class="icon-home"></i> 首页</a>
        </li>-->
        <li class="has_sub">
            <a href="#"><i class="icon-list-alt"></i> 系统管理  <span class="pull-right"><i class="icon-chevron-right"></i></span></a>
            <ul
                <?php if(\think\Request::instance()->controller() == 'Core'): ?>
                    style="display:block;"
                <?php endif; ?>
            >
                <li
                    <?php if(preg_match('/^user/', \think\Request::instance()->action()) == 1): ?>
                        class="muen_open"
                    <?php endif; ?>
                ><a href="/admin/core/user">系统用户管理</a></li>
                <li
                    <?php if(preg_match('/^config/', \think\Request::instance()->action()) == 1): ?>
                        class="muen_open"
                    <?php endif; ?>
                ><a href="/admin/core/config">系统设置</a></li>
            </ul>
        </li>
        <li class="has_sub">
            <a href="#"><i class="icon-tasks"></i> 单条内容管理  <span class="pull-right"><i class="icon-chevron-right"></i></span></a>
            <ul
                <?php if(\think\Request::instance()->controller() == 'Courses'): ?>
                    style="display:block;"
                <?php endif; ?>
            >
            <li
                <?php if(preg_match('/^colists/', \think\Request::instance()->action()) == 1): ?>
                    class="muen_open"
                <?php endif; ?>
            ><a href="/admin/courses/coLists">列表</a></li>
            </ul>
        </li>
        <li class="has_sub">
            <a href="#"><i class="icon-user"></i> 发布者账号管理  <span class="pull-right"><i class="icon-chevron-right"></i></span></a>
            <ul
                    <?php if(\think\Request::instance()->controller() == 'Posted'): ?>
                        style="display:block;"
                    <?php endif; ?>
            >
            <li
                <?php if(preg_match('/^audit/', \think\Request::instance()->action()) == 1): ?>
                    class="muen_open"
                <?php endif; ?>
            ><a href="/admin/posted/audit">待审核列表</a></li>
            <li
                <?php if(preg_match('/^posteder/', \think\Request::instance()->action()) == 1): ?>
                    class="muen_open"
                <?php endif; ?>
            ><a href="/admin/posted/posteder">账号管理</a></li>
            </ul>
        </li>
        <li class="has_sub">
            <a href="#"><i class="icon-paperclip"></i> 渠道管理  <span class="pull-right"><i class="icon-chevron-right"></i></span></a>
            <ul
                <?php if(\think\Request::instance()->controller() == 'Channel'): ?>
                    style="display:block;"
                <?php endif; ?>
            >
                <li
                    <?php if(preg_match('/^chlists/', \think\Request::instance()->action()) == 1): ?>
                        class="muen_open"
                    <?php endif; ?>
                ><a href="/admin/channel/chLists">渠道列表</a></li>
            </ul>
        </li>
        <li class="has_sub">
            <a href="#"><i class="icon-calendar"></i> 数据统计分析  <span class="pull-right"><i class="icon-chevron-right"></i></span></a>
            <ul
                <?php if(\think\Request::instance()->controller() == 'Analyze'): ?>
                    style="display:block;"
                <?php endif; ?>
            >
            <li
                <?php if(preg_match('/^stats/', \think\Request::instance()->action()) == 1): ?>
                    class="muen_open"
                <?php endif; ?>
            ><a href="/admin/analyze/stats">统计</a></li>
            </ul>
        </li>
    </ul>
</div>
    <!-- 左侧菜单 ends -->

    <!-- Main bar -->
    <div class="mainbar">

        <!-- Page heading -->
        <div class="page-head">
            <h2 class="pull-left"><i class="icon-home"></i> 单条内容管理</h2>

            <!-- Breadcrumb -->
            <div class="bread-crumb pull-right">
                <a href="#" class="bread-current">系统管理</a>
            </div>

            <div class="clearfix"></div>

        </div>
        <!-- Page heading ends -->



        <!-- Matter -->

        <div class="matter">
            <div class="container">

                <div class="row">
                    <div class="col-lg-12">
                        <div class="ibox-content" style="line-height: 45px;">
                            <form class="form-inline" action="" method="get">

                                <div class="form-group">
                                    <label class="sr-only">课程名称</label>
                                    <input type="text" placeholder="课程名称" id="courses_title" name="courses_title" class="form-control" value="<?php echo $courses_title; ?>">
                                </div>

                                <div class="form-group">
                                    <label class="sr-only">内容分类</label>
                                    <select class="form-control" name="classify">
                                        <option value="0">选择内容分类</option>
                                        <?php if(is_array($classifys) || $classifys instanceof \think\Collection || $classifys instanceof \think\Paginator): $i = 0; $__LIST__ = $classifys;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$class): $mod = ($i % 2 );++$i;?>
                                        <option value="<?php echo $class['id']; ?>" <?php if($class['id'] == $classify): ?>selected="selected"<?php endif; ?>><?php echo $class['classify_name']; ?></option>
                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                    </select>
                                </div>

                                <div class="form-group">
                                    <label class="sr-only">是否有推文</label>
                                    <select class="form-control" name="has_generalize">
                                        <option value="0">是否有推文</option>
                                        <option value="1" <?php if($has_generalize == 1): ?>selected="selected"<?php endif; ?>>是</option>
                                        <option value="2" <?php if($has_generalize == 2): ?>selected="selected"<?php endif; ?>>否</option>
                                    </select>
                                </div>

                                <div class="form-group">
                                    <label class="sr-only">是否有收益</label>
                                    <select class="form-control" name="has_earning">
                                        <option value="0">是否有收益</option>
                                        <option value="1" <?php if($has_earning == 1): ?>selected="selected"<?php endif; ?>>是</option>
                                        <option value="2" <?php if($has_earning == 2): ?>selected="selected"<?php endif; ?>>否</option>
                                    </select>
                                </div>

                                <div class="form-group">
                                    <label class="sr-only">是否为默认banner素材</label>
                                    <select class="form-control" name="is_default_banner">
                                        <option value="0">是否为默认banner素材</option>
                                        <option value="1" <?php if($is_default_banner == 1): ?>selected="selected"<?php endif; ?>>是</option>
                                        <option value="2" <?php if($is_default_banner == 2): ?>selected="selected"<?php endif; ?>>否</option>
                                    </select>
                                </div>

                                <button class="btn btn-primary" type="submit">查询</button>
                            </form>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-md-12">

                        <div class="widget">
                            <div class="widget-head">
                                <div class="pull-left">Tables</div>
                                <div class="widget-icons pull-right">
                                    <a href="#" class="wminimize"><i class="icon-chevron-up"></i></a>
                                    <a href="#" class="wclose"><i class="icon-remove"></i></a>
                                </div>
                                <div class="clearfix"></div>
                            </div>

                            <div class="widget-content">

                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                    <tr>
                                        <th width="50">内容ID</th>
                                        <th width="160">内容名称</th>
                                        <th width="100">内容H5详情页链接</th>
                                        <th width="100">推广banner</th>
                                        <th width="200">内容分类</th>
                                        <th width="40">是否有推文</th>
                                        <th width="40">是否有收益</th>
                                        <th width="40">是否为默认bannel</th>
                                        <th width="60">内容售价</th>
                                        <th width="60">推广收益</th>
                                        <th width="70">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>

                                    <?php if(is_array($lists) || $lists instanceof \think\Collection || $lists instanceof \think\Paginator): $i = 0; $__LIST__ = $lists;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?>
                                    <tr>
                                        <td><?php echo $li['id']; ?></td>
                                        <td><?php echo $li['title']; ?></td>
                                        <td>
                                            <a href="" target="_blank"></a>
                                        </td>
                                        <td>
                                            <img src="<?php echo $li['banner']; ?>" />
                                        </td>
                                        <td><?php echo $li['classify_name']; ?></td>
                                        <td><?php echo $li['has_generalize']; ?></td>
                                        <td><?php echo $li['has_earning']; ?></td>
                                        <td><?php echo $li['is_default_banner']; ?></td>
                                        <td><?php echo $li['price']; ?></td>
                                        <td><?php echo $li['generalize_earning']; ?></td>
                                        <td>
                                            <a href="<?php echo url('/admin/courses/coEdit',['id'=>$li['id']]); ?>" class="btn btn-xs btn-default" title="修改"><i class="icon-pencil"></i> </a>
                                            <button class="btn btn-xs btn-default" title="删除" ajax-id="data-delete" data-url="/admin/courses/coDelete" data-id="<?php echo $li['id']; ?>"><i class="icon-trash"></i> </button>
                                        </td>
                                    </tr>
                                    <?php endforeach; endif; else: echo "" ;endif; ?>

                                    </tbody>
                                </table>

                                <div class="pagination1">
                                    <?php echo $page; ?>
                                </div>

                            </div>

                        </div>


                    </div>
                </div>
                <!-- Dashboard graph ends -->


            </div>
        </div>

        <!-- Matter ends -->

    </div>

    <!-- Mainbar ends -->
    <div class="clearfix"></div>

</div>
<!-- Content ends -->

<!-- Footer starts -->
<footer>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <!-- Copyright info -->
                <p class="copy">Copyright &copy; 2012 | <a href="#">Your Site</a> </p>
            </div>
        </div>
    </div>
</footer>
<!-- Footer ends -->

<!-- Scroll to top -->
<span class="totop"><a href="#"><i class="icon-chevron-up"></i></a></span>

<!-- JS -->
<script src="/static/admin/js/jquery.js"></script> <!-- jQuery -->
<script src="/static/admin/js/bootstrap.js"></script> <!-- Bootstrap -->
<script src="/static/admin/js/jquery-ui-1.9.2.custom.min.js"></script> <!-- jQuery UI -->
<script src="/static/admin/js/fullcalendar.min.js"></script> <!-- Full Google Calendar - Calendar -->
<script src="/static/admin/js/jquery.rateit.min.js"></script> <!-- RateIt - Star rating -->
<script src="/static/admin/js/jquery.prettyPhoto.js"></script> <!-- prettyPhoto -->

<!-- jQuery Flot -->
<script src="/static/admin/js/excanvas.min.js"></script>
<script src="/static/admin/js/jquery.flot.js"></script>
<script src="/static/admin/js/jquery.flot.resize.js"></script>
<script src="/static/admin/js/jquery.flot.pie.js"></script>
<script src="/static/admin/js/jquery.flot.stack.js"></script>

<!-- jQuery Notification - Noty -->
<script src="/static/admin/js/jquery.noty.js"></script> <!-- jQuery Notify -->
<script src="/static/admin/js/themes/default.js"></script> <!-- jQuery Notify -->
<script src="/static/admin/js/layouts/bottom.js"></script> <!-- jQuery Notify -->
<script src="/static/admin/js/layouts/topRight.js"></script> <!-- jQuery Notify -->
<script src="/static/admin/js/layouts/top.js"></script> <!-- jQuery Notify -->
<!-- jQuery Notification ends -->

<script src="/static/admin/js/sparklines.js"></script> <!-- Sparklines -->
<script src="/static/admin/js/jquery.cleditor.min.js"></script> <!-- CLEditor -->
<script src="/static/admin/js/bootstrap-datetimepicker.min.js"></script> <!-- Date picker -->
<script src="/static/admin/js/bootstrap-switch.min.js"></script> <!-- Bootstrap Toggle -->
<script src="/static/admin/js/filter.js"></script> <!-- Filter for support page -->
<script src="/static/admin/js/custom.js"></script> <!-- Custom codes -->
<script src="/static/admin/js/charts.js"></script> <!-- Charts & Graphs -->


<script src="/static/admin/js/system/jquery.form.js"></script>
<script src="/static/admin/js/system/layer/layer.js"></script>
<script src="/static/admin/js/system/form.js"></script>
</body>
</html>